package cn.example.common.protocol.structs;

import lombok.Data;
import java.util.Map;
import cn.hutool.core.map.MapUtil;
@Data
/**
 * 道具 -> 装备
 */
public class EquipmentDTO extends PropDTO{
	/** 等级 */
	private int lv;

	public Map<Object, Object> toMap(Map<Object, Object> map){
		super.toMap(map);
		map.put(3466,this.lv);
	    return map;
	}

	public EquipmentDTO forMap(Map<Object, Object> map){
        super.forMap(map);
        this.lv = MapUtil.getInt(map ,3466);
        return this;
    }
}